set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
set ANT_HOME=D:\org\apache-ant-1.7.1
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar

ant
pause